<template>
  <div :class="{
    'message34': props.width === '34', 'message20': props.width === '20', 'message24': props.width === '24',
    'message341': props.width === '341'
  }" @click.stop="message">
    <div class="chang"></div>
    <span class="dian">...</span>
  </div>
</template>

<script setup>
const emit = defineEmits(['message'])
const props = defineProps({
  width: {
    type: String
  }
});
const message = () => {
  emit('message')
}
</script>

<style lang="scss" scoped>
// 信息
.message34,
.message20,
.message24,
.message341 {
  position: absolute;
  right: 0;
  bottom: 0;
  margin-bottom: 140px;
  margin-right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  z-index: 5;

  .chang {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    margin-bottom: 2px;
    border: 3px solid #fff;
    border-top: none;
    border-right: none;
  }

  .dian {
    position: absolute;
    bottom: 50%;
    right: 50%;
    margin-right: -11px;
    margin-bottom: -10px;
    font-size: 30px;
    color: #fff;
  }
}

.message24 {
  width: 24px;
  height: 24px;
  top: 0;
  left: 0;
  border: 1.5px solid #fff;
  margin-left: 100px;
  margin-top: 8px;

  .chang {
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
  }

  .dian {
    font-size: 18px;
    margin-right: -6px;
    margin-bottom: -6px;
  }
}

.message20 {
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  border: 1px solid #fff;
  margin-left: 10px;
  margin-top: 10px;

  .chang {
    margin-left: 0.01px;
    margin-bottom: 1px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background-color: #a753ec;
    // border-top:  solid #000;
  }

  .dian {
    margin-right: -7px;
    margin-bottom: -7px;
    font-size: 20px;
  }
}

.message341 {
  margin-bottom: 10px;
  margin-right: 50px;
}
</style>